<?php
class Modules_Core_View_Menu
{
	
	public static  function draw()
	{

		$str.='<td id="mm1" class="selected"><a style="cursor:pointer;" onclick="CallObject({\'module\': \'Projects.ListProjects\'},\'Workarea\')">Projects</a></td>';		
		$str.='<td id="mm2"><a style="cursor:pointer;" onclick="CallObject({\'module\': \'Dashboard.Dashboard\'},\'Workarea\')">Dashboard</A></td>';
				if(isset($_SESSION['project']) && $_SESSION['project']!=-1)
				{
					$str.='<td id="mm3"><a style="cursor:pointer;" onclick="CallObject({\'module\': \'Tasks.ListTasks\'},\'Workarea\')">Tasks</a></td>';
					$str.='<td id="mm4"><a style="cursor:pointer;" onclick="CallObject({\'module\': \'Quality.ShowDefects\'},\'Workarea\')">Tasks</a></td>';
				}	
				return $str;	
	}	
	public static function option($module)
	{
		switch($module)
		{
			case 'Projects.ListProjects':
					return "mm1";
				break;
			case 'Dashboard.Dashboard':
					return "mm2";
				break;
			case "Tasks.ListTasks":
					return "mm3";
				break;
			case "Quality.ShowDefects":
					return "mm4";
				break;		
		}
	}
}
